﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace AbacusCustom
{
    public partial class frmAbacusCustom : Form
    {
        public frmAbacusCustom()
        {
            InitializeComponent();
        }

        private void frmAbacusCustom_Load(object sender, EventArgs e)
        {
            Point p = new Point();

            //set logo position to center
            p.X=(this.Width / 2) - (companyLogo.Width / 2);
            p.Y=(this.Height / 2) - (companyLogo.Height / 2);

            companyLogo.Location = p ;
        }

        private void createToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmCreateReport fcr = new frmCreateReport();
            fcr.Show();
        }

        private void createToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void frmAbacusCustom_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }

        private void importCSVToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmImportcsv ic = new frmImportcsv();
            ic.Show();
        }

        private void printReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPrintReport pr = new frmPrintReport();
            pr.Show();
        }

        private void manageReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmManageReport mr = new frmManageReport();
            mr.Show();
        }
    }
}
